]> dgit.raspbian.org Git - gnome-shell.git/commit
mpris: Only expose the players that can play
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 16 Apr 2026 16:35:57 +0000 (18:35 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 16 Apr 2026 17:51:23 +0000 (19:51 +0200)
commitf4965964d34314d8c4d490c8f95a3f50710660be
treedc07aa967f9c00fb84b31e63a55af3ca9a176bc2
parent1603d3308a0c83777fba969dc817d3dd6afe6d7e
mpris: Only expose the players that can play

In mpris we only emit "player-added" for players that can actually play,
but during NotificationBox and MessageList initialization we add them all,
including those not having being technically added.

And this may be a problem when locking the screen, since we do not want
players to show if they cannot play.

So, be consistent and expose publicly only the players that can play

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4183>
js/ui/mpris.js